;; Author: Tom Tromey <tromey@busco.lanl.gov>
;; Chris Lindblad <cjl@lcs.mit.edu>
;; Keywords: languages tcl modes
-;; Version: $Revision: 1.14 $
+;; Version: $Revision: 1.15 $
;; This file is part of GNU Emacs.
;; LCD Archive Entry:
;; tcl|Tom Tromey|tromey@busco.lanl.gov|
;; Major mode for editing Tcl|
-;; $Date: 1994/05/22 20:18:28 $|$Revision: 1.14 $|~/modes/tcl.el.Z|
+;; $Date: 1994/05/22 20:38:11 $|$Revision: 1.15 $|~/modes/tcl.el.Z|
;; CUSTOMIZATION NOTES:
;; * tcl-proc-list can be used to customize a list of things that
;; Change log:
;; $Log: tcl.el,v $
+; Revision 1.15 1994/05/22 20:38:11 tromey
+; Added bug-report keybindings and menu entries.
+;
; Revision 1.14 1994/05/22 20:18:28 tromey
; Even more compile stuff.
;
;; * Consider writing code to find help files automatically (for
;; common cases).
;; * `#' shouldn't insert `\#' when point is in string.
+;; * '}' doesn't seem to reindent.
\f
(require 'imenu))
()))
-(defconst tcl-version "$Revision: 1.14 $")
+(defconst tcl-version "$Revision: 1.15 $")
(defconst tcl-maintainer "Tom Tromey <tromey@busco.lanl.gov>")
;;
["Beginning of function" tcl-beginning-of-defun t]
["End of function" tcl-end-of-defun t]
["Mark function" tcl-mark-defun t]
- ["Indent region" indent-region t]
- ["Comment region" comment-region t]
- ["Uncomment region" tcl-uncomment-region t]
+ ["Indent region" indent-region (tcl-mark)]
+ ["Comment region" comment-region (tcl-mark)]
+ ["Uncomment region" tcl-uncomment-region (tcl-mark)]
"----"
["Show Tcl process buffer" inferior-tcl t]
- ["Send function to Tcl process" tcl-eval-defun t]
- ["Send region to Tcl process" tcl-eval-region t]
- ["Send file to Tcl process" tcl-load-file t]
+ ["Send function to Tcl process" tcl-eval-defun
+ (get-buffer inferior-tcl-buffer)]
+ ["Send region to Tcl process" tcl-eval-region
+ (get-buffer inferior-tcl-buffer)]
+ ["Send file to Tcl process" tcl-load-file
+ (get-buffer inferior-tcl-buffer)]
["Restart Tcl process with file" tcl-restart-with-file t]
"----"
- ["Tcl help" tcl-help-on-word t]
+ ["Tcl help" tcl-help-on-word tcl-help-directory-list]
["Send bug report" tcl-submit-bug-report t])
"Lucid Emacs menu for Tcl mode.")
'mark-defun
'tcl-internal-mark-defun))
+;; In GNU Emacs 19, mark takes an additional "force" argument. I
+;; don't know about Lucid Emacs, so I'm just assuming it is the same.
+;; Emacs 18 doesn't have this argument.
+(defun tcl-mark ()
+ "Return mark, or nil if none."
+ (if tcl-using-emacs-19
+ (mark t)
+ (mark)))
+
\f
;;